package com.veer.shop.param;

import java.util.Map;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.veer.shop.utils.DateTimeUtil;

/**
 * 品牌列表请求参数 实体类
 * 
 * @author WangBin
 * 2020年9月25日-下午2:07:33
 */
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class BrandParam {
	
	private String brand_name;
	private String brand_bn;
	private String created_at;
	private String is_actived;
	private String begin_at = "";
	private String end_at = "";
	public String getBrandName() {
		return brand_name;
	}
	public void setBrandName(String brand_name) {
		this.brand_name = brand_name;
	}
	public String getBrandBn() {
		return brand_bn;
	}
	public void setBrandBn(String brand_bn) {
		this.brand_bn = brand_bn;
	}
	public String getCreatedAt() {
		return created_at;
	}
	public void setCreatedAt(String created_at) {
		// 这里需要预处理时间区间
		Map<String, String> createdAtRange = DateTimeUtil.parseCreatedAtRange(created_at);
		this.begin_at = createdAtRange.get("begin_at");
		this.end_at = createdAtRange.get("end_at");
		this.created_at = created_at;
	}
	public String getIsActived() {
		return is_actived;
	}
	public void setIsActived(String is_actived) {
		this.is_actived = is_actived;
	}
	public String getBeginAt() {
		return begin_at;
	}
	public String getEndAt() {
		return end_at;
	}
}
